package com.ssy.lingxi.report.entity.report;

import com.ssy.lingxi.report.handler.convert.JpaJsonToPlatformTallyReportBOConverter;
import com.ssy.lingxi.report.model.bo.PlatformTallyReportBO;

import javax.persistence.*;
import java.io.Serializable;

/**
 * 平台计数报表
 * @author 伍将
 * @date 2020/11/24
 * @version 2.0.0
 */
@Entity
@Table(schema = "public", name = "rep_platform_tally_report")
public class PlatformTallyReportDO implements Serializable {
    private static final long serialVersionUID = 4811075081036243067L;

    /**
     * id
     */
    @Id
    @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "platform_tally_report_seq")
    @SequenceGenerator(sequenceName = "rep_platform_tally_report_seq", name = "platform_tally_report_seq", allocationSize = 1)
    private Long id;

    /**
     * 计数报表
     */
    @Convert(converter = JpaJsonToPlatformTallyReportBOConverter.class)
    @Column(columnDefinition = "jsonb")
    private PlatformTallyReportBO TallyReport;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public PlatformTallyReportBO getTallyReport() {
        return TallyReport;
    }

    public void setTallyReport(PlatformTallyReportBO tallyReport) {
        TallyReport = tallyReport;
    }
}
